package duixiang.xuesheng;

/**
 * @author げっしょく
 * @date 2021/7/4
 */
public class Studen {
    private String name;
    private String age;

    public Studen() {
        System.out.println(name);
        System.out.println(age);
    }

    public Studen(String name, String age) {
        this.name = name;
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAge() {
        return age;
    }

    public void setAge(String age) {
        this.age = age;
    }
}



/* private String name ;
    private int age;
    private int id;
    public Studen(){
        name = "张三";
        age = 25;
        id = 88;
    }
    public Studen(String name, int age, int id){
        this.name = name ;
        this.age = age;
        this.id = id;
    }
    public void sexAge(int age){
        if(age>=0 && age<=100){
            this.age= age;
        }else{
            System.out.println("你传入的年龄有误");
        }
    }
    public int getAge(){
        return age;
    }
    public void show(){
        System.out.println(name +"......"+age+"......"+id);
    }
    public  void studen(){
        System.out.println("在足浴店洗脚的时候学习");
        System.out.println("在喧闹的菜市场候学习");
    }*/